﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CMSV2/MasterPage.master" AutoEventWireup="true"
    CodeFile="NewsManager.aspx.cs" Inherits="CMSV2_NewsManager" %>

<%@ Register Assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    Namespace="System.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ACT" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=ReviewerEntities"
        DefaultContainerName="ReviewerEntities" EnableDelete="True" EnableInsert="True"
        EnableUpdate="True" EntitySetName="NewsSet" EntityTypeFilter="News">
        <WhereParameters>
            <asp:QueryStringParameter Name="NewsID" ConvertEmptyStringToNull="true" DbType="Guid"
                Direction="InputOutput" QueryStringField="NewsID" Type="String" />
        </WhereParameters>
    </asp:EntityDataSource>
    <ACT:TabContainer runat="server" ID="tbCt" Width="600">
        <ACT:TabPanel runat="server" ID="tpTextPanel" HeaderText="Tekst">
            <ContentTemplate>
                <p>
                    <asp:Label runat="server" ID="lblTitle" AssociatedControlID="txtTitle" Text="Titel:" /><br />
                    <asp:TextBox runat="server" ID="txtTitle" MaxLength="255" Width="500" />
                    <asp:RequiredFieldValidator runat="server" Display="Dynamic" ControlToValidate="txtTitle"
                        ID="rfvTxtTitle" ErrorMessage="<br />Husk en titel" />
                </p>
                <p>
                    <asp:Label runat="server" ID="lblSubject" AssociatedControlID="ddlSubject" Text="Emne:" /><br />
                    <asp:DropDownList runat="server" ID="ddlSubject">
                        <asp:ListItem Text="Nyhed" Value="Nyhed"></asp:ListItem>
                        <asp:ListItem Text="Pressemeddelelse" Value="Pressemeddelelse"></asp:ListItem>
                        <asp:ListItem Text="Screenshots" Value="Screenshots"></asp:ListItem>
                        <asp:ListItem Text="Update" Value="Update"></asp:ListItem>
                        <asp:ListItem Text="Ny Udgivelse" Value="Ny Udgivelse"></asp:ListItem>
                        <asp:ListItem Text="Rygte" Value="Rygte"></asp:ListItem>
                    </asp:DropDownList>
                </p>
                <p>
                    <asp:Label runat="server" ID="lblBodyText" AssociatedControlID="txtBodyText" Text="Brødtekst:" /><br />
                    <asp:TextBox runat="server" ID="txtBodyText" TextMode="MultiLine" Width="500" Height="80"
                        MaxLength="255" />
                    <asp:RequiredFieldValidator runat="server" ID="rfvBodyText" ControlToValidate="txtBodyText"
                        Display="Dynamic" ErrorMessage="<br />Husk at skrive en brødtekst" />
                </p>
                <p>
                    <asp:Label runat="server" ID="lblText" AssociatedControlID="txtText" Text="Tekst:" /><br />
                    <asp:TextBox runat="server" ID="txtText" TextMode="MultiLine" Width="500" Height="300" />
                    <asp:RequiredFieldValidator runat="server" ID="rfvText" ControlToValidate="txtText"
                        Display="Dynamic" ErrorMessage="<br />Husk at skrive en tekst" />
                </p>
                <p>
                    <asp:Label runat="server" ID="lblSource" AssociatedControlID="txtSource" Text="Kilde:" /><br />
                    <asp:TextBox runat="server" ID="txtSource" Width="500" MaxLength="255" />
                </p>
                <p>
                    <asp:Label runat="server" ID="lblNewsIdentifier" AssociatedControlID="lblNewsIdentifierValue"
                        Text="Nyheds-ID:" /><br />
                    <asp:Label runat="server" ID="lblNewsIdentifierValue" Text="Nyhed" />
                </p>
                <p>
                    <div style="text-align: right">
                        <asp:Button runat="server" ID="btnSaveItem" Text="Gem" />
                    </div>
                </p>
            </ContentTemplate>
        </ACT:TabPanel>
    </ACT:TabContainer></asp:Content>
